package com.rui.visitor.obj;

/**
 * @Description: 具体的访问者类, 访问者角色(CTO)
 * @Author: ZhangRui
 * @Date: 2023/3/3 17:07
 * @Version: 1.0
 */
public class CtoVisitor implements IVisitor {

    @Override
    public void visit(Engineer engineer) {
        System.out.println(engineer.getName() + "工作内容:" + engineer.getCodeLine() + "行代码");
    }

    @Override
    public void visit(Pm pm) {
        System.out.println(pm.getName() + "工作内容:" + pm.getProject() + "个项目");
    }
}
